package com.ficus.road.maintain.core.model.smartnew;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xiawen yang
 * @date 2022/7/14 下午6:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SmartValuation extends SmartTable {
    /**
     * 总金额
     */
    private double money;
    /**
     * 单价
     */
    private double price;

    public SmartValuation(SmartTable table, double money, double price) {
        super(table, table.getType());
        this.totalWeight = table.getTotalWeight();
        this.money = money;
        this.price = price;
    }

    public SmartValuation(String id, double money) {
        super(id);
        this.money = money;
    }
}
